<template>
  <el-button @click="handleSort()">{{ !isSort ? '开启排序' : '关闭排序' }}</el-button>
</template>
<script setup>
  import { ref } from 'vue'
  const isSort = ref(false)
  const emit = defineEmits(['sort'])
  const handleSort = () => {
    isSort.value = !isSort.value
    emit('sort', isSort.value)
  }
</script>
